#include "Game\Game.h"

#include <iostream>
#include <string>

int main()
{
	Game* game = new Game();

	std::string host;
	std::cout << "Please enter the host IP: ";
	std::cin >> host;

	game->Init((char*)host.c_str());

	while (game->State() == S_RUNNING)
		game->Loop();

	// Game loop broken
	if (game->State() == S_ERROREXIT)
		MessageBox(NULL, (LPWSTR)game->Error(), L"Error", MB_ICONERROR);

	game->Exit();

	return 0;
}